﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WorkShop.WorkShop
{
    public partial class BillInformationValidation : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack) { 
                lblUserID.Text = Request.QueryString["userID"];
                txtCity.Text = "";
                txtCountry.Text = "";
                txtCreditCardNumber.Text = "";
                txtEmail.Text="";
                txtFname.Text="";
                txtLastName.Text="";
                txtState.Text = "";
                txtZipCode.Text = "";
                txtFname.Focus();
            }
        }

        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            Response.Redirect("ThankYouValidation.aspx?userID="+lblUserID.Text);
        }

        protected void btnReset_Click(object sender, EventArgs e)
        {
            txtCity.Text = "";
            txtCountry.Text = "";
            txtCreditCardNumber.Text = "";
            txtEmail.Text = "";
            txtFname.Text = "";
            txtLastName.Text = "";
            txtState.Text = "";
            txtZipCode.Text = "";
            ddlCreditCard.SelectedIndex = 0;
        }
    }
}